import React from 'react'
import {Button, Tag} from "antd";
import {Row, Col} from "antd";
export default class OperationBtn extends React.Component {

    state = {}

    render() {
        const btnList = [
            {
                content:'全部',
                color:"success",
            },
            {
                content:'未完成',
                color:null,
            },
            {
                content:'已完成',
                color: null,
            }
        ]

        return (
            <>
                <Row>
                    {
                        btnList.map((item, index) => {
                            return (
                                <Col key={index} span={4}>
                                    <Tag color={item.color || null}>{item.content}</Tag>
                                </Col>
                            )
                        })
                    }


                </Row>
            </>
        )
    }

}